<extend name="Index/index" />

<block name="main">

	<div class="row">
		<div class="col-md-12">
			<form action="<{:U('Category/update')}>" method='post' class="form-horizontal" enctype="multipart/form-data">
				<div class="form-group">
				<input type="hidden" name="id" value="<{$list.id}>">
					<label for="" class="col-sm-2 control-label">分类名称 ：</label>
					<div class="col-sm-4">
						<input type="text" name="name" class="form-control" value="<{$list.name}>">
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">父级ID ：</label>
					<div class="col-sm-4">
						<input type="text" name="pid" class="form-control" value="<{$list.pid|default='0'}>" readonly>
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">分类路径 ：</label>
					<div class="col-sm-4">
						<input type="text" name="path" class="form-control" value="<{$list.path|default='0'}>" readonly>
					</div>
				</div>
				
				<div class="form-group">
				    <div class="col-sm-offset-2 col-sm-4">
				      <button type="submit" class="btn btn-default">修 改</button>
				    </div>
				</div>
		
			</form>
		</div>
	</div>
</block>